#include "addstudentdlg.h"
#include "ui_addstudentdlg.h"
#include <QDebug>

AddStudentDlg::AddStudentDlg(QWidget* parent)
    : QDialog(parent)
    , ui(new Ui::AddStudentDlg)
{
    ui->setupUi(this);
    connect(ui->surePushButton, &QPushButton::clicked, [=]() {
        m_stuName = ui->nameLineEdit->text();
        m_stuNum = ui->numLineEdit->text();
        m_stuSex = ui->sexComboBox->currentText();
        m_stuGradeNum = ui->stuGradeComboBox->currentText();
        m_stuHeight = ui->heightLineEdit->text();
        accept();
    });
}

AddStudentDlg::~AddStudentDlg()
{
    delete ui;
}
